package cn.enilu.flash.bean.entity.transport;

import cn.enilu.flash.bean.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

/**
 * 地图点信息表
 */
@Data
@Table(appliesTo = "t_map_point",comment = "地图点信息")
@Entity(name="t_map_point")
@EntityListeners(AuditingEntityListener.class)
public class MapPoint extends BaseEntity {

    private Long roadId;

    //经度
    private String longitude;
    //纬度
    private String latitude;
    //详细地址
    private String addressDetails;

    private String province;

    private String city;

    private String district;

    //节点类型： 0：起始点，1：终点，2：中途点, 3:用户地址
    private Integer pointType;

    @Column(columnDefinition = "bigint COMMENT '下一节点'")
    private Long nextId;







}
